/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-09-14
 * Time: 13:05
 */

class MyRunnable implements Runnable {

    @Override
    public void run() {
        System.out.println("Hello MyRunnable");
    }
}

public class demo2 {
    public static void main(String[] args) throws InterruptedException {
        MyRunnable runnable = new MyRunnable();
        Thread t1 = new Thread(runnable);
        t1.start();
        t1.join();

    }
}
